projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d4066
)
(set-face-font-auto): Create a fontset if FONT is a
author
Kenichi Handa
<handa@m17n.org>
Thu, 31 Jul 1997 05:54:08 +0000
(
05:54
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 31 Jul 1997 05:54:08 +0000
(
05:54
+0000)
fontset not instanciated fontset.
lisp/faces.el
patch
|
blob
|
history
diff --git
a/lisp/faces.el
b/lisp/faces.el
index 0641a1695e09b4b930afc58f6740bb376c3e9e5f..f925daa6e704940491edfe6d2929197d3aea7cf3 100644
(file)
--- a/
lisp/faces.el
+++ b/
lisp/faces.el
@@
-173,7
+173,9
@@
If the optional FRAME argument is provided, change only
in that frame; otherwise change each frame."
(interactive (internal-face-interactive "font"))
(if (stringp font)
- (setq font (or (query-fontset font)
+ (setq font (or (and (fontset-name-p font)
+ (or (query-fontset font)
+ (instanciate-fontset font)))
(x-resolve-font-name font 'default frame))))
(internal-set-face-1 face 'font font 3 frame))